%Estimate the log return of stocks
%Parameter is a matrix with each column is price of a stock
function [r] = getReturn(price)
    %Return the log return of stock
    r = log(price(2:end, :)./price(1:end - 1, :));
end

